package com.lhf.fvscommon.entity;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

/**
 * 角色表(SysRole)实体类
 *
 * @author lhf
 * @since 2020-10-26 10:56:48
 */
@ApiModel("")
@Data
public class SysRole extends Page implements Serializable {
    private static final long serialVersionUID = -90083804801135227L;
    @ApiModelProperty(value = "角色主键")
    @ApiParam(defaultValue = "-1")
    @TableId(type= IdType.AUTO)
    private Integer roleId;
    @ApiModelProperty(value = "角色名")
    private String roleName;
    @ApiModelProperty(value = "角色")
    private String role;
    @ApiModelProperty(value = "图标")
    private String roleIco;
    @ApiModelProperty(value = "角色创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "权限")
    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<SysPer> pers;
}